import java.util.TreeSet;

public class TES {
    public static void main(String[] args) {
        TreeSet <Student> students = new TreeSet<>();
        Student stu = new Student("ba",19);
        Student stu1 = new Student("adb",19);
        Student stu2 = new Student("cpc",19);
        Student stu3 = new Student("apc",19);
        Student stu4 = new Student("bpc",19);
        Student stu5 = new Student("ccpc",19);
        students.add(stu);
        students.add(stu1);
        students.add(stu2);
        students.add(stu3);
        students.add(stu5);
        students.add(stu4);
        System.out.println(students);
    }
}
